import { ENV_TYPE, getEnv } from '@tarojs/taro';

const env = getEnv();

let ip: string;

switch (env) {
  case ENV_TYPE.WEAPP:
    ip = 'https://www.liuzhiwei.xyz:4000';
    break;
  case ENV_TYPE.WEB:
    ip = '';
    break;
  case 'QQ':
    ip = 'https://www.liuzhiwei.xyz:4000';
  default:
    ip = 'https://www.liuzhiwei.xyz:4000';
}
console.log('proxy--', ip, env);
export default { ip, env };
